// 存放路径: src/services/home.ts
import type { GetImgType } from '@/types/home'
import { http } from '@/utils/http'


export const getImgsAPI = (params: any) => {
    return http<GetImgType>({
        method: 'GET',
        url: 'https://img.moehu.org/pic.php',
        data: {
            return: 'json',
            id: params.id,
            num: params.num,
            size: params.size,
            //添加随机数，防止出现缓存
            random: Math.random()
        }
    })
}